<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/tags.jsp"%>
<!DOCTYPE html>
<html>
<head>
  <title>${seo.title}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <meta name="Keywords" content="${seo.keywords}">
  <meta name="description" content="${seo.description}">
  <%@include file="/common/style.jsp"%>
  <link rel="stylesheet" type="text/css" href="${static_url}/ui/app/assets/css/login.css">
  <%@include file="/common/javascript.jsp"%>
  <%@include file="/common/js/niceValidator.jsp"%>
  <style>
    #foot {
      margin-top: 0px !important;
    }
  </style>

</head>
<body>
<!-- 头部 -->
<%@include file="/common/myHeader.jsp"%>
<!-- /头部 -->

<!-- 主体 -->
<div id="content" style="background-color: #d9d9d9;">
  <div id="loginBlock" class="login tab-1">
    <div class="loginFunc">
      <div id="lbApp" class="loginFuncApp" onclick="setTab(1)">普通用户登录</div>
      <div id="lbNormal" class="loginFuncNormal" onclick="setTab(2)">商家登录</div>
    </div>
    <!-- 普通用户登录 -->
    <div id="appLoginTab1" class="loginForm" style="display: block;">
      <%@include file="login_buyer.jsp"%>
    </div>

    <!-- 商家帐号登录 -->
    <div id="appLoginTab2" style="display: none;">
      <%@include file="login_seller.jsp"%>
    </div>

    <c:if test="${flash!=null && !flash.success}">
      <div class="isa_error">
        <i class="fa fa-times-circle"></i>
        登陆失败！
      </div>
    </c:if>
    <c:if test="${register=='success'}">
      <div class="isa_success">
        <i class="fa fa-check"></i>
        注册成功，请登录！
      </div>
    </c:if>
  </div>
</div>


<script>
$(function(){
	$("#form1_token").val($("#sellerLogin").find("input[name='crsf_token']").val());
});
  function setTab(index){
   if(index==1){
     $("#loginBlock").removeClass("tab-2");
     $("#loginBlock").addClass("tab-1");
     $("#appLoginTab1").show();
     $("#appLoginTab2").hide();
   }else{
     $("#loginBlock").removeClass("tab-1");
     $("#loginBlock").addClass("tab-2");
     $("#appLoginTab2").show();
     $("#appLoginTab1").hide();
   }
  }

  <c:if test="${tab==2}">
  setTab(2);
  </c:if>


</script>

<!-- /主体 -->

<!-- 底部 -->
<%@include file="/common/footer.jsp"%>
<!-- /底部 -->

</body>
</html>
